package com.community.property.service.impl;


import com.community.property.domain.VO.PropertyBuildingVo;
import com.community.property.domain.VO.PropertyHouseVO;
import com.community.property.domain.VO.PropertyCommunityVO;
import com.community.property.mapper.PropertyHouseMapper;
import com.community.property.service.IPropertyHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PropertyPropertyHouseServiceImpl implements IPropertyHouseService {

    @Autowired
    private PropertyHouseMapper propertyHouseMapper;


    @Override
    public List<PropertyCommunityVO> getCommunity() {
        return propertyHouseMapper.getCommunity();
    }

    @Override
    public List<PropertyBuildingVo> getBuildingId(Integer communityId) {
        return propertyHouseMapper.getBuilding(communityId);
    }

    @Override
    public List<PropertyHouseVO> getHouseId(Integer buildingId) {
        return propertyHouseMapper.getHouse(buildingId);
    }
}
